import "./App.css";

function App() {
  const list = [
    {
      id: 1,
      name: "张三",
    },
    {
      id: 2,
      name: "李四",
    },
    {
      id: 3,
      name: "王五",
    },
  ];

  return (
    <>
      <div>
        <ul>
          {list.map((item) => (
            <li key={item.id}>{item.name}</li>
          ))}
        </ul>
      </div>
    </>
  );
}

export default App;
